package com.woniu.main.goods.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniu.main.goods.mapper.GoodsAuditedMapper;
import com.woniu.main.goods.pojo.Goods;
import com.woniu.main.goods.pojo.GoodsUnreviewed;
import com.woniu.main.goods.service.GoodsAuditedService;
@Service
public class GoodsAuditedServiceImp implements GoodsAuditedService {
	@Autowired
	private GoodsAuditedMapper goodsAuditedMapper;

	/* 
	 * 查找所有已审商品 */
	@Override
	public List<Goods> findAllAudited() {
		
		return goodsAuditedMapper.findAllAudited();
	}
	/*
	 * 
	 *  自动审核通过的商品添加到已审核通过商品表 */
	@Override
	public void insertAudited(GoodsUnreviewed goodsUnreviewed) {
		goodsAuditedMapper.insertAudited(goodsUnreviewed);
		
	}

}
